using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
using GDGeek;

namespace Shows_3D
{
    public static class Vector3RoundingReaderWriter
    {
        public static void WriteVector3Rounding(this NetworkWriter writer, Vector3Rounding vector3)
        {
            writer.WriteString(vector3.x);
            writer.WriteString(vector3.y);
            writer.WriteString(vector3.z);
        }

        public static Vector3Rounding ReadVector3Rounding(this NetworkReader reader)
        {
            return new Vector3Rounding(reader.ReadString(), reader.ReadString(), reader.ReadString());
        }
    }
}